package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.AnalysisConclusionProxy;
import edu.unr.cater.npap.client.proxy.ProjectProxy;

public class AnalysisConclusionProxyRenderer extends ProxyRenderer<AnalysisConclusionProxy> {

    private static edu.unr.cater.npap.client.managed.ui.AnalysisConclusionProxyRenderer INSTANCE;

    protected AnalysisConclusionProxyRenderer() {
        super(new String[] { "conclusionContent" });
    }

    public static edu.unr.cater.npap.client.managed.ui.AnalysisConclusionProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new AnalysisConclusionProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(AnalysisConclusionProxy object) {
        if (object == null) {
            return "";
        }
        return object.getConclusionContent() + " (" + object.getConclusionContent() + ")";
    }
}
